package com.woniuxy.driverschool.mapper;

import com.woniuxy.driverschool.entity.SchoolTimeTable;
import com.woniuxy.driverschool.service.courseArrangement.parameterMessage.MessageForInsertIntoSchoolTimeTable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shichen
 * @create 2021-09-29-15:47
 * @description
 */
public interface SchoolTimeTableMapper {

    /**
     * UPDATE 新加数据 传入插入表所需要的三个参数
     * @param message
     */
    public void insertLesson(MessageForInsertIntoSchoolTimeTable message);
    public void deleteLesson(MessageForInsertIntoSchoolTimeTable message);

    /**
     * 更改上课人数
     * @param tnumber
     * @param tid
     */
    public void modifyNumber(@Param("tnumber") int tnumber,@Param("tid") int tid);

    /**
     * 条件查询上课
     * @param schoolTimeTable
     * @return
     */
    public List<SchoolTimeTable> selectLessonByCondition(SchoolTimeTable schoolTimeTable);

    /**
     * 根据 id 来进行查询
     * @return
     */
    public SchoolTimeTable selectLessonByID(int id);
}
